package com.jsu.user.feign;


import org.example.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("wscc-service-user")
public interface UserServerClient {

    @GetMapping("/user/web/v1/user/get/{phone}")
    ResponseResult getUserByPhone(@PathVariable("phone") String phone);
    @GetMapping("/user/web/v1/user/get/user/{userId}")
    ResponseResult getUserById(@PathVariable("userId") Integer userId);
}
